home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / misc / fpl-v13.lha / fpl / src / smakefile < prev    next >
Makefile  |  1995-09-25  |  5KB  |  137 lines

  1. # $VER: fpl.library makefile v4.0 95-07-08
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1994 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. LIBRARY = fpl.library    # library version
  33. TARGET2 = FPL        # executable file version
  34. SFPL    = SFPL        # library using executable
  35.  
  36. #
  37. # These flags build the .library:
  38. #
  39. FLAGS = RESETOPTIONS STRINGMERGE UNSIGNEDCHAR NOSTKCHK NOSTANDARDIO DATA=NEAR\
  40. NOVERSION DEFINE=AMIGA DEFINE=SHARED LIBCODE NOMULTIPLEINCLUDES\
  41. DEFINE=DEBUGMAIL\
  42. OPTIMIZE
  43. DEBUG=S 
  44. #DEFINE=DEBUG
  45.  
  46. ASMFLAGS = IDIR=Include: ASSEMBLER
  47. LINKFLAGS = SC SD
  48. LIBS = LIB:sc.lib
  49. OBJS = libent.o libinit.o script.o numexpr.o hash.o statement.o liballoc.o\
  50.        memory.o frontend.o debug.o reference.o sprintf.o scan.o sscanf.o
  51. CC = sc
  52. ASM = sc
  53. LINK = slink
  54.  
  55. #
  56. # These flags build the file version:
  57. #
  58. #CFLAGS = STRINGMERGE UNSIGNEDCHAR STKCHK DATA=NEAR IGNORE=217+183 DEBUG=S\
  59. # STANDARDIO DEFINE=DEBUG DEFINE=AMIGA NOVERSION
  60. # DEFINE=SHARED DEFINE=SFPL # use these when building 'SFPL'
  61. #TARGETDEP2 = caller.o script.o numexpr.o hash.o statement.o
  62. #OBJS2 = LIB:c.o $(TARGETDEP2)
  63.  
  64. all: $(LIBRARY) $(SFPL)
  65.  
  66. $(LIBRARY): $(OBJS) smakefile
  67.       slink with <<
  68. LIBFD fpl.fd 
  69. to $(LIBRARY)
  70. FROM  $(OBJS)
  71. # lib:libent.o lib:libinit.o
  72. lib $(LIBS)
  73. noicons
  74. SD SC
  75. STRIPDEBUG
  76. FWIDTH 20 PWIDTH 20 WIDTH 20
  77. map FPL.map H
  78. libid "fpl.library 13.8 (25.9.95)"
  79. libversion 13 librevision 8
  80. <
  81.     copy $(LIBRARY) LIBS: CLONE
  82.     copy FPL.h /include/libraries/ CLONE
  83.     copy reference.h /include/FPL/ CLONE
  84.     copy FPL.h include:libraries/ CLONE
  85.  
  86. $(TARGET2): $(TARGETDEP2)
  87.     $(LINK) SC SD FROM $(OBJS2) TO $(TARGET2) LIB $(LIBS)
  88.  
  89. $(SFPL): caller.o
  90.     $(LINK) SC SD FROM LIB:c.o caller.o to $(SFPL) LIB $(LIBS)
  91.   
  92. script.o: script.c script.h FPL.h
  93.     $(CC) $(FLAGS) $<
  94.  
  95. numexpr.o: numexpr.c script.h FPL.h
  96.     $(CC) $(FLAGS) $<
  97.  
  98. hash.o: hash.c script.h FPL.h
  99.     $(CC) $(FLAGS) $<
  100.  
  101. statement.o: statement.c script.h FPL.h
  102.     $(CC) $(FLAGS) $<
  103.  
  104. frontend.o: frontend.c script.h FPL.h
  105.     $(CC) $(FLAGS) $<
  106.  
  107. libinit.o: libinit.c
  108.     $(CC) $(FLAGS) $<
  109.  
  110. liballoc.o: liballoc.a
  111.     $(CC) $(FLAGS) $(ASMFLAGS) $<
  112.  
  113. libent.o: libent.a
  114.     $(CC) $(FLAGS) UNDERSCORE $(ASMFLAGS) $<
  115.  
  116. memory.o: memory.c script.h
  117.     $(CC) $(FLAGS) $<
  118.  
  119. debug.o: debug.c FPL.h script.h
  120.     $(CC) $(FLAGS) $<
  121.  
  122. reference.o: reference.c reference.h FPL.h script.h
  123.     $(CC) $(FLAGS) $<
  124.  
  125. sprintf.o: sprintf.c FPL.h script.h
  126.     $(CC) $(FLAGS) $<
  127.  
  128. sscanf.o: sscanf.c FPL.h script.h
  129.     $(CC) $(FLAGS) $<
  130.  
  131. scan.o: scan.c FPL.h script.h
  132.     $(CC) $(FLAGS) $<
  133.  
  134. caller.o: caller.c reference.h FPL.h /include/pragmas/FPL_pragmas.h
  135.     $(CC) STRINGMERGE UNSIGNEDCHAR DATA=NEAR NOVERSION\
  136. DEFINE=AMIGA DEFINE=SHARED DEFINE=SFPL IGNORE=183 $< DEBUG=S
  137.